import { BaseEntity } from '@cool-midway/core';
import { Column, Entity } from 'typeorm';

/**
 * 圈子
 */
@Entity('app_circle')
export class CircleEntity extends BaseEntity {
    @Column({ comment: '圈子名称', type: 'varchar', length: 50 })
    name: string;
    
    @Column({ comment: '圈子描述', type: 'varchar', length: 255 })
    description: string;
    
    @Column({ comment: '圈子封面', type: 'varchar', length: 500 })
    cover: string;

    @Column({ comment: '圈子分类', type: 'varchar', length: 50 })
    categoryIds: string;

    @Column({ comment: '创建者', type: 'varchar', length: 50 })
    openid: string;

    @Column({ comment: '状态 0:禁用 1:启用', default: 0, type: 'tinyint' })
    status: number;
}
